<?php
/**
 * Created by PhpStorm.
 * User: tsy
 * Date: 2017/5/19
 * Time: 18:15
 */
namespace Admin\Controller\Borrow;
use Think\Controller;
use Admin\Controller\Common\BaseController;

class BorrowcashbackController extends BaseController{
    public function borrowcashback_list(){
        $this->display();
    }

    public function borrowcashback_main(){
        $page=I("post.page","1");
        $rows=I("post.rows","10");
        $select_custName=I("post.select_custName","");
        $select_borrowId=I("post.select_borrowId","");

        $search_array['select_custName']=$select_custName;
        $search_array['select_borrowId']=$select_borrowId;

        $repaydetail=D("RepayDetail");
        $result=$repaydetail->repay_cashback($search_array,$page,$rows);
        echo json_encode($result);

    }
}